package day02;

/**
 * 数组的练习：遍历二维数组并求和
 * @author: yyfei  
 * @email:  yyfei123@qq.com
 */
public class PraArray {
	public static void main(String[] args) {
		int[][] arr=new int[][]{{3,5,8},{12,9},{7,0,6,4}};
		
		int sum=0;
		//遍历外层数组
		for (int i = 0; i < arr.length; i++) {
			//遍历每个元素中的数组
			for (int j = 0; j < arr[i].length; j++) {
				sum += arr[i][j];
			}
		}
		System.out.println(sum);
		
		int[] x,y[];
		
		
		
		
		
	}
}
